Fix the broken build. Also avoid floating-point code in Xen.
/* XXX create domain on CPU=-1 so that in future it auto load ballances by default */
if ( xc_domain_create( xc_handle, nr_pfns * (PAGE_SIZE / 1024),
- name,
- -1, 1, &dom ) )
+ name, -1, &dom ) )
{
xcio_error(ioctxt, "Could not create domain. pfns=%d, %dKB",
nr_pfns,nr_pfns * (PAGE_SIZE / 1024));
CFLAGS += -iwithprefix include -Wall -Werror -fomit-frame-pointer -pipe
CFLAGS += -I$(BASEDIR)/include -Wno-pointer-arith -Wredundant-decls
+# Prevent floating-point variables from creeping into Xen.
+CFLAGS += -msoft-float
+
ifeq ($(TARGET_SUBARCH),x86_32)
CFLAGS += -m32 -march=i686
LDFLAGS := --oformat elf32-i386
* values, the virtual time can be determined as:
* SVT - const * TIME_SLEPT
*/
- io_warp = (int)(0.5 * inf->time_slept);
+ io_warp = inf->time_slept/2;
if ( io_warp > 1000 )
io_warp = 1000;
* domains earlier in virtual time). Together this should give quite
* good control both for CPU and IO-bound domains.
*/
- LAST_VTB(cpu) = (int)(0.2 * next_inf->time_slept);
+ LAST_VTB(cpu) = next_inf->time_slept/5;
if(LAST_VTB(cpu) / next_inf->mcu_advance > max_vtb / MCU)
LAST_VTB(cpu) = max_vtb * next_inf->mcu_advance / MCU;